package com.huobao.yunying.utils;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;

public class OpenIntentUtil {

	public static void openVideo(String url, Context context) {
		Uri uri = Uri.parse(url);
		Intent intent = new Intent(Intent.ACTION_VIEW);
		intent.setDataAndType(uri, "video/mp4");
		context.startActivity(intent);
	}
	
	public static void openAudio(String url, Context context){
		Uri uri = Uri.parse(url);
		Intent intent = new Intent(Intent.ACTION_VIEW);
		intent.setDataAndType(uri, "audio/*");
		context.startActivity(intent);
	}
}
